//
//  TopicModel.m
//  QuickReadComic
//
//  Created by 苗钧豪 on 16/9/7.
//  Copyright © 2016年 苗钧豪. All rights reserved.
//

#import "TopicModel.h"

@implementation TopicModel
- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"user"]) {
        _user = [UserModels modelWithDic:value];
    }
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"description"]) {
        _Description = value;
    } else if ([key isEqualToString:@"id"]) {
        _ID = [value integerValue];
    }
}
@end
